package com.fangmou.ing.publish.freemarker.directive;

import java.io.IOException;
import java.util.Map;

import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateDirectiveModel;
import freemarker.template.TemplateException;
import freemarker.template.TemplateModel;

/**
 * block删除命令
 * 相当于标签内容为空的override命令
 * @必传参数：name（对应父模板中block名称）
 * @author kongdy
 */
public class DeleteDirective implements TemplateDirectiveModel {

  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    
    OverrideDirective over = new OverrideDirective();
    over.execute(env, params, loopVars, null);
  }

}
